package com.cuit.ocp.service;

import com.alibaba.fastjson.JSONObject;
import com.cuit.ocp.bean.Trader;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface TraderService {
    boolean addNewTrader(Trader new_trader);
    boolean update(Trader new_trader);
    boolean deleteById(int trader_id);
    boolean deleteByIds(List<Integer> trader_id);
    List<Trader> findById(int id);
    List<Trader> findByName(String name);
    Map<Object, Object> findAll(int page_num);
    Trader jsonToTrader(String json_info);
}
